<?php
namespace app\common\system\logic;

use app\common\BaseLogic;
use app\common\system\model\Notice;

class NoticeLogic extends BaseLogic
{
    public function createNotice($fromUserId, $userId, $type, $content, $options=[])
    {
        $Notice = new Notice();
        $Notice->from_user_id = $fromUserId;
        $Notice->user_id = $userId;
        $Notice->type = $type;
        $Notice->content = $content;
        $Notice->options = $options;
        $Notice->save();
    }
}